package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.entity.BaseEntity;

/**
 * 响应实体类
 */
@Data
@TableName("sys_respond")
public class Respond extends BaseEntity {
    @TableId(type = IdType.AUTO)    //主键自增长
    private Long id; //响应ID
    private Long userId;//所属用户ID
    private Long newsId;//所属新闻ID
    private String content;//内容
    private Integer status;//审核状态
    @TableField(exist = false)
    private String newsTitle;//新闻标题
    @TableField(exist = false)
    private String avatar;//头像
    @TableField(exist = false)
    private String username;//用户名
    @TableField(exist = false)
    private String realname;//真实姓名
    @TableField(exist = false)
    private String role;//用户权限
}
